/**
 * @author ZZQ
 * @date 2019/3/29 下午 11:25
 */
public class TestAB {
    public static void main(String[] args) {
        // 142356
        //B b = new B();

        // 142356
        //A a = new B();

        // 1423562356
        //B b1 = new B();
        //B b2 = new B();
    }
}

class A {
    static int a = 4;

    static {
        System.out.print(1);
    }

    {
        System.out.print("2");
    }

    public A() {
        System.out.print(3);
    }
}

class B extends A {
    static int a = 5;

    static {
        System.out.print(4);
    }

    {
        System.out.print("5");
    }

    public B() {
        System.out.print(6);
    }
}